using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace MeteorShower
{
    class bullet
    {
        // int count = 3;
        Vector2 bulletposition; 
      
        bool bulletactive = false;
        bool inventory = true;

        public void shoot(float x, float y)
        {
            bulletposition.X = x;
            bulletposition.Y = y;
            inventory = false;
            bulletactive = true; 
        }

        public void move(int s_x)
        {

            bulletposition.X += 10;
            if (bulletposition.X > s_x)
            {
                bulletactive = false;
                inventory = true; 
            }

        }

        public void collide()
        {
            bulletactive = false;
            inventory = true; 
        }


        public bool isactive()
        {
            return bulletactive; 

        }

        public bool ininventory()
        {
            return inventory;

        }

        public Vector2 getbulletposition()
        {
            return bulletposition;
        }

    }
}
